<?php
namespace app\common\model;

use think\Model;

class VersionModel extends Model
{
	protected $autoWriteTimestamp='datetime';
	protected $updateTime = false;
	protected $dateFormat = "Y-m-d H:i:s";
	protected $field = true;

	public function getTypeAttr($value){
		$array = [1=>'安卓',2=>'IOS'];
		return [
				'source'=>$value,
				'data'=>$array[$value],
			];
	}

	public function setContentAttr($value){
		return htmlspecialchars($value);
	}
}